//
//  SRPersonalDataView.m
//  SportRing
//
//  Created by icelee on 14-10-31.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import "SRModifyPersonalHeaderView.h"

@interface SRModifyPersonalHeaderView()

@property (nonatomic, weak)IBOutlet LGButton *takePhotoButton;
@property (nonatomic, weak)IBOutlet LGButton *photoAlbumButton;


@end

@implementation SRModifyPersonalHeaderView


- (IBAction)takePhotoButtonAction:(id)sender
{
    [self fadeOutToBottom:[ELBasePupupView getMainWindow]];

    if (_mpDelegate && [_mpDelegate respondsToSelector:@selector(takePhoto)])
    {
        [_mpDelegate takePhoto];
    }
    
}

- (IBAction)photoAlbumButton:(id)sender
{
    [self fadeOutToBottom:[ELBasePupupView getMainWindow]];

    if (_mpDelegate && [_mpDelegate respondsToSelector:@selector(gotoPhotoAlbum)])
    {
        [_mpDelegate gotoPhotoAlbum];
    }
    
}

+ (SRModifyPersonalHeaderView*)LoadSRModifyPersonalHeaderView
{
    NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"SRModifyPersonalHeaderView" owner:self options:nil];
    
    return [nib objectAtIndex:0];
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
